<?php foreach ($css as $cs): ?>
<?php use_stylesheet($cs->getCss()) ?>
<?php endforeach ?>

<center><h1>Commentaire</h1></center>

<table width=80% align=center>
    <?php foreach ($pager->getResults() as $commentaire): ?>
    <tr>
      <td class="blog" bgcolor="#b5b7b7" align="center"><?php echo 'posté par '.$commentaire->getAuteur().' le '.$commentaire->getDate('d-m-Y') ?></td></tr>
    <tr><td class="blog" bgcolor="#FFFFFF"><?php echo $commentaire->getCommentaire() ?></td>
    </tr>
    <?php endforeach; ?>
</table>
<br><br>
<?php echo link_to('retour','article/index?id_blog='.$id_blog.''); ?>
<center>
<?php if ($pager->haveToPaginate()): ?>
  <?php echo link_to('&laquo;', 'commentaire/index?page='.$pager->getFirstPage().' & id_blog='.$id_blog.' &id_article='.$id_article) ?>
  <?php echo link_to('&lt;', 'commentaire/index?page='.$pager->getPreviousPage().' & id_blog='.$id_blog.' &id_article='.$id_article) ?>
  <?php $links = $pager->getLinks(); foreach ($links as $page): ?>
    <?php echo ($page == $pager->getPage()) ? $page : link_to($page, 'commentaire/index?page='.$page.' & id_blog='.$id_blog.' &id_article='.$id_article) ?>
    <?php if ($page != $pager->getCurrentMaxLink()): ?> - <?php endif ?>
  <?php endforeach ?>
  <?php echo link_to('&gt;', 'commentaire/index?page='.$pager->getNextPage().' & id_blog='.$id_blog.' &id_article='.$id_article) ?>
  <?php echo link_to('&raquo;', 'commentaire/index?page='.$pager->getLastPage().' & id_blog='.$id_blog.' &id_article='.$id_article) ?>
   <?php endif ?>
</center>